import torch
import numpy as np

tc = torch.rand(1, 2)
print(tc)

print(torch.numel(tc))

z = torch.zeros(3, 3)
print(z)

# numpy 转换为 tensor
n = np.array([2, 5, 7])
print(n, torch.from_numpy(n))
